package com.woniuxy.controller;

import com.woniuxy.entity.Mail;
import com.woniuxy.service.DelayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 马宇航
 * @Description: TODO
 * @DateTime: 22/10/20/0020 16:29
 * @Component: 成都蜗牛学苑
 **/
@RestController
public class DelayController {
    @Autowired
    DelayService delayService;
    @PostMapping("lazytopic")
    public void delayTopic(@ModelAttribute Mail mail){
        delayService.sendDelayMessage(mail);
    }
}
